package week6;

public class BankAccount {
    private  int accountNumber;
    private  String password;
    private  double deposit;
    private  double balance;
    static  double interestRate;
    static  double minBalance;

    public  BankAccount(int accountNumber,String password,double deposit,double balance){
        this.accountNumber=accountNumber;
        this.password=password;
        this.deposit=deposit;
        this.balance=balance;
        this.interestRate=interestRate;
        this.minBalance=minBalance;

    }


    public int getAccountNumber(){
        return  accountNumber;
    }
    public  static  int generateAccountNumber(){
        int accountNumber = 10000000+(int)(Math.random()*1000000);
        return accountNumber;
    }
    public String getPasswd(){
        return password;

    }
    public  double getDeposit(){
        return deposit;
    }
    public  double getBalance(){
       return balance;
    }
    public static double getInterestRate(){
        return interestRate;
    }
    public static  double getMinBalance(){
        return minBalance;
    }

    public String showInfo() {
        return "BankAccount{" +
                "accountNumber=" + accountNumber +
                ", password='" + password + '\'' +
                ", balance=" + balance +
                '}'+interestRate;
    }
}
